
from pylot.core import Book

class MyClass (object) :
  u"""
  This class shows how to document source code in pylot
  """

  def __init__ (self) :
    self.options = Book(u'options')
    # ...

  def getValue (self, key, book=None) :
    u"""
    Looks if an option called 'key' exists in book.
    If true returns it else returns None.
    If book is None, default option book is used.

    :param key: option name
    :type key: :obj:`unicode`
    :param book: option book
    :type book: :class:`~pylot.core.Book`

    :return: corresponding value or None
    :rtype: variable
    """
    # ...

